package com.kqb.service.impl;

import com.kqb.common.curd.impl.BaseServiceImpl;
import com.kqb.mapper.SegmentationMapper;
import com.kqb.pojo.Segmentation;
import com.kqb.service.SegmentationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SegmentationServiceImpl extends BaseServiceImpl<Segmentation,SegmentationMapper> implements SegmentationService {

    @Autowired
    SegmentationMapper segmentationMapper;

    @Override
    public List<Segmentation> findAll(Segmentation segmentation) {
        List<Segmentation> list = segmentationMapper.findAll(segmentation);
        return list;
    }

    public int update(Segmentation segmentation){
        int update = segmentationMapper.updateSegmentation(segmentation);
        return update;
    }


}
